//
//  ViewControllerItem.swift
//  Segment_swift
//
//  Created by CarlsonLee on 2020/4/24.
//  Copyright © 2020 CarlsonLee. All rights reserved.
//

import UIKit

class ViewControllerItem: UIViewController {

    var lab: UILabel?
    var t: String?
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        initSubviews()
    }
    

    func initSubviews() {
        lab = UILabel()
        lab?.textColor = UIColor.red
        view.addSubview(lab!)
        lab?.text = t
        
        lab?.snp.makeConstraints( {(make) in
            make.center.equalTo(view.center)
            make.size.equalTo(100)
        })
    }
}
